# -*- coding: utf-8 -*-
# @Author  : Doubebly
# @Time    : 2025/4/6 21:04

import json
import re
import sys
import time
import hashlib
import requests
import base64
from urllib.parse import urlencode
sys.path.append('..')
from base.spider import Spider


class Spider(Spider):
    def getName(self):
        return "SMT"

    def init(self, extend):
        self.d = "[{"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "翡翠台", "fun": "smt", "pid": "jade_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "翡翠台 backup", "fun": "smt", "pid": "Jade_xue"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "iNews 新闻台", "fun": "smt", "pid": "inews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "J 2", "fun": "smt", "pid": "j2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "珍珠台", "fun": "smt", "pid": "pearl_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "凤凰香港", "fun": "smt", "pid": "hkphoenix_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "HOY资讯台", "fun": "smt", "pid": "hoycaijing_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "RHK 31", "fun": "smt", "pid": "rhk31_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "VIUTV1", "fun": "smt", "pid": "viu1_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "RHK 32", "fun": "smt", "pid": "rhk32_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "凤凰卫视", "fun": "smt", "pid": "phoenixtv_hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "凤凰资讯", "fun": "smt", "pid": "phoenixinfo_hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "香港", "name": "Viu6", "fun": "smt", "pid": "viusix_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-1 综合 HD", "fun": "smt", "pid": "cctv1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-2 财经", "fun": "smt", "pid": "cctv2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-3 综艺 HD", "fun": "smt", "pid": "cctv3"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-4 中文国际", "fun": "smt", "pid": "cctv4"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV4 新闻台", "fun": "smt", "pid": "Cctv4"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-7 军事农业", "fun": "smt", "pid": "cctv7"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-8 电视剧 HD", "fun": "smt", "pid": "cctv8hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-9 记录 HD", "fun": "smt", "pid": "cctv9hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-10 科教 HD", "fun": "smt", "pid": "cctv10hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-11 戏曲", "fun": "smt", "pid": "cctv11"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-12 社会与法", "fun": "smt", "pid": "cctv12"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-13 新闻频道", "fun": "smt", "pid": "cctv13"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-14 少儿", "fun": "smt", "pid": "cctv14"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-6", "fun": "smt", "pid": "cctv6"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-15 音乐", "fun": "smt", "pid": "cctv15"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "湖南卫视", "fun": "smt", "pid": "hunan_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "浙江卫视", "fun": "smt", "pid": "zhejiang_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "江苏卫视", "fun": "smt", "pid": "jiangsu_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "深圳卫视", "fun": "smt", "pid": "shenzhen"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "福建东南卫视", "fun": "smt", "pid": "fujian"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "广东南方卫视", "fun": "smt", "pid": "nanfang_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "广东卫视", "fun": "smt", "pid": "guangdongweishi_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "北京卫视", "fun": "smt", "pid": "beijing"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "珠江台", "fun": "smt", "pid": "zhujiang"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "广西卫视", "fun": "smt", "pid": "guangxi"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "湖北卫视", "fun": "smt", "pid": "hubei"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "四川卫视", "fun": "smt", "pid": "sichuan_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "东方卫视", "fun": "smt", "pid": "dongfangweishi_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CGTN", "fun": "smt", "pid": "CGTN"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "凤凰卫视", "fun": "smt", "pid": "phoenixtv_hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "凤凰资讯", "fun": "smt", "pid": "phoenixinfo_hd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-5 体育频道", "fun": "smt", "pid": "cctv5"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "中国", "name": "CCTV-5+ 体育赛事 HD", "fun": "smt", "pid": "cctv5plus"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Premier League 1", "fun": "smt", "pid": "go_assp1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro EPL 1 backup", "fun": "smt", "pid": "go_assp1x"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Premier League 2", "fun": "smt", "pid": "go_assp2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Grandstand", "fun": "smt", "pid": "go_assp3"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Football", "fun": "smt", "pid": "go_assp4"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Sports Plus", "fun": "smt", "pid": "go_sportsplus"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Badminton 1", "fun": "smt", "pid": "go_badminton1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Badminton 2", "fun": "smt", "pid": "go_badminton2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro W-Sports", "fun": "smt", "pid": "go_assp5"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Supersports 1", "fun": "smt", "pid": "Assp1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Supersports 2", "fun": "smt", "pid": "Assp2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Supersports 3", "fun": "smt", "pid": "Assp3"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Supersports 4", "fun": "smt", "pid": "Assp4"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "WWE", "fun": "smt", "pid": "Wwe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Fight Sports", "fun": "smt", "pid": "Fs"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "NBA TV", "fun": "smt", "pid": "Nba"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Cricket", "fun": "smt", "pid": "Acricket"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Golf", "fun": "smt", "pid": "Agolf"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Tnt Sports 1", "fun": "smt", "pid": "6fac0aaead"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "TNT Sports 2", "fun": "smt", "pid": "d9a76a79cc"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "TNT Sports 3", "fun": "smt", "pid": "5fea4d73db"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "TNT Sports 4", "fun": "smt", "pid": "tntsport4"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Sony Ten 1", "fun": "smt", "pid": "ten1_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Sony Ten 2", "fun": "smt", "pid": "ten2_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Sony Ten 3", "fun": "smt", "pid": "ten3_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "SPOTV 1 HD", "fun": "smt", "pid": "go_spotv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "SPO TV 2", "fun": "smt", "pid": "go_spotv2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Skysports F1", "fun": "smt", "pid": "tiankongf1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Skysports Cricket", "fun": "smt", "pid": "tiankongcricket"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Skysports EPL", "fun": "smt", "pid": "tiankongepl"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Skysports Main Event", "fun": "smt", "pid": "tiankongmain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Skysports News", "fun": "smt", "pid": "tiankongnews"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Skysports Mix", "fun": "smt", "pid": "tiankongmix"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "CCTV-5 体育频道", "fun": "smt", "pid": "cctv5"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "CCTV-5+ 体育赛事 HD", "fun": "smt", "pid": "cctv5plus"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "爱尔达体育2台", "fun": "smt", "pid": "eltasport2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "爱尔达体育3台", "fun": "smt", "pid": "eltasport3_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Rugby Pass TV", "fun": "smt", "pid": "Rugbypasstv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "RTM Sports HD", "fun": "smt", "pid": "Rtmsport"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Arena", "fun": "smt", "pid": "Arena"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Arena 2", "fun": "smt", "pid": "Arena2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "BolaArena 1", "fun": "smt", "pid": "Bolaarena1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "BolaArena 2", "fun": "smt", "pid": "Bolaarena2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Beinsports 1", "fun": "smt", "pid": "Astrobein1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Beinsports 2", "fun": "smt", "pid": "Astrobein2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "体育频道", "name": "Astro Beinsports 3", "fun": "smt", "pid": "Astrobein3"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "TVBS News 新闻台", "fun": "smt", "pid": "tvbs_n"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "TVBS 欢乐台 （备份）", "fun": "smt", "pid": "tvbshuanle_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "TVBS HD", "fun": "smt", "pid": "tvbs"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "中天新闻 HD", "fun": "smt", "pid": "ctinews"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "中天娱乐 CTI Entertaiment", "fun": "smt", "pid": "ctient"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "中天综合 CTI Metro", "fun": "smt", "pid": "ctizhonghe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "中天亚洲台", "fun": "smt", "pid": "ctiasia_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "台视 TTV HD", "fun": "smt", "pid": "ttv_taiwan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "台视新闻台", "fun": "smt", "pid": "ttvnews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "台视综合台", "fun": "smt", "pid": "ttvzhonghe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "中视 HD", "fun": "smt", "pid": "zhongshihd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "中视新闻台", "fun": "smt", "pid": "zhongshinews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "民视 HD", "fun": "smt", "pid": "ftvhd_taiwan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "民视新闻台 FTV News", "fun": "smt", "pid": "ftvnew_taiwan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "民视台湾台", "fun": "smt", "pid": "ftvtaiwan_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "华视 CTS HD", "fun": "smt", "pid": "ctshd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "公视 CTV", "fun": "smt", "pid": "ctv18_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "八大第一 GTV First", "fun": "smt", "pid": "badafirst"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "八大综合 GTV Metro", "fun": "smt", "pid": "badazhonghe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "八大戏剧 GTV Drama", "fun": "smt", "pid": "badadrama"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "八大娱乐 GTV Entertainment", "fun": "smt", "pid": "badaentertain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "HBO_HD", "fun": "smt", "pid": "hbohd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "HBO_HITS", "fun": "smt", "pid": "hbohit_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "Hollywood Movies", "fun": "smt", "pid": "hollywoodmovies_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "三立台湾 Sanli Taiwan", "fun": "smt", "pid": "sanlitaiwan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "三立戏剧台", "fun": "smt", "pid": "sanlixiju_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "三立综合 Sanli Metro", "fun": "smt", "pid": "sanlizhonghe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "三立都会台", "fun": "smt", "pid": "sanlidouhui"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森新闻 ETTV News", "fun": "smt", "pid": "ettvnews"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "CINEMAX", "fun": "smt", "pid": "cinemax_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森综合 ETTV Metro", "fun": "smt", "pid": "ettvzhonghe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森戏剧 ETTV Drama", "fun": "smt", "pid": "ettvdrama"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森超视", "fun": "smt", "pid": "ettvsuper"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森财经新闻 ETTV Business", "fun": "smt", "pid": "ettvcaijing_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "寰宇财经", "fun": "smt", "pid": "huanyutaiwan_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "寰宇新闻台", "fun": "smt", "pid": "huanyuxinwen_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "公视2", "fun": "smt", "pid": "ctv2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "大爱1台", "fun": "smt", "pid": "daai_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "非凡新闻台", "fun": "smt", "pid": "feifannews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "龙华戏剧 Lunghua Drama", "fun": "smt", "pid": "lunghuaxiju_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "龙华经典台", "fun": "smt", "pid": "lunghuajingdian_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "龙华偶像", "fun": "smt", "pid": "lunghuaidol_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "AXN Taiwan", "fun": "smt", "pid": "axn_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "靖天国际台", "fun": "smt", "pid": "jingtianintl_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "年代新闻", "fun": "smt", "pid": "niandainews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "纬来日本台", "fun": "smt", "pid": "videolandjapan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "纬来电影台", "fun": "smt", "pid": "videolandmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "纬来体育台", "fun": "smt", "pid": "videolandsport"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "纬来综合台", "fun": "smt", "pid": "videolandzonghe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "纬来育乐", "fun": "smt", "pid": "videolandyule"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "纬来精彩", "fun": "smt", "pid": "videolandspecial_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "好消息 2", "fun": "smt", "pid": "good2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "大爱2台", "fun": "smt", "pid": "daai2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "亚洲美食", "fun": "smt", "pid": "afc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "美食星球", "fun": "smt", "pid": "foodplanet_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "亚洲旅游 TLC Asia", "fun": "smt", "pid": "tlc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森电影 ETTV Movie", "fun": "smt", "pid": "ettvmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "阿里郎 Arirang", "fun": "smt", "pid": "arirang_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "博斯运动 1", "fun": "smt", "pid": "bosisport1_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "博斯运动 2", "fun": "smt", "pid": "bosisport2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "博斯高球2 HD", "fun": "smt", "pid": "bosigolf2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "博斯网球 HD", "fun": "smt", "pid": "bositennis_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森洋片 ETTV Western", "fun": "smt", "pid": "ettvwestern"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "龙华洋片 Lunghua Western", "fun": "smt", "pid": "lunghuawestern_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "博斯无限", "fun": "smt", "pid": "bosiunlimited_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "MTV Live", "fun": "smt", "pid": "mtvhd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "龙详时代", "fun": "smt", "pid": "lungxiangtime_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "EYETV 旅游", "fun": "smt", "pid": "eyetvtravel_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "靖天卡通台", "fun": "smt", "pid": "jingtiancartoon_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "EYETV 戏剧", "fun": "smt", "pid": "eyetvxiju_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "卫视中文台 Star Movies Chinese", "fun": "smt", "pid": "weishichinese_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "东森幼幼 Yoyo TV", "fun": "smt", "pid": "yoyo_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "卫视电影台", "fun": "smt", "pid": "weishimovie_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "美亚电影", "fun": "smt", "pid": "meiyamovie_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "爱尔达影剧台", "fun": "smt", "pid": "eltayingju_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "爱尔达综合台", "fun": "smt", "pid": "eltazonghe_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "星卫电影", "fun": "smt", "pid": "xingwei_movie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "爱尔达影剧", "fun": "smt", "pid": "eltayingju_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "AFC 亚洲旅游台", "fun": "smt", "pid": "asiatravel_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "爱尔达体育2台", "fun": "smt", "pid": "eltasport2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "台湾", "name": "爱尔达体育3台", "fun": "smt", "pid": "eltasport3_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "HBO_HD", "fun": "smt", "pid": "hbohd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "HBO_HITS", "fun": "smt", "pid": "hbohit_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Hollywood Movies", "fun": "smt", "pid": "hollywoodmovies_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "CCTV-6", "fun": "smt", "pid": "cctv6"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "CINEMAX", "fun": "smt", "pid": "cinemax_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Cinemax", "fun": "smt", "pid": "Cinemax"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "AXN Taiwan", "fun": "smt", "pid": "axn_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "大爱2台", "fun": "smt", "pid": "daai2_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "东森电影 ETTV Movie", "fun": "smt", "pid": "ettvmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "东森洋片 ETTV Western", "fun": "smt", "pid": "ettvwestern"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "龙华洋片 Lunghua Western", "fun": "smt", "pid": "lunghuawestern_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Animax", "fun": "smt", "pid": "Animax"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "龙详时代", "fun": "smt", "pid": "lungxiangtime_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Movies Now HD", "fun": "smt", "pid": "moviesnow_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Star Movies HD", "fun": "smt", "pid": "starmovies_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "卫视中文台 Star Movies Chinese", "fun": "smt", "pid": "weishichinese_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "HBO Family", "fun": "smt", "pid": "Hbofamily"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Hits", "fun": "smt", "pid": "Hits"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Warner TV", "fun": "smt", "pid": "WarnerTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "卫视电影台", "fun": "smt", "pid": "weishimovie_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "HBO HD", "fun": "smt", "pid": "Hbo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "美亚电影", "fun": "smt", "pid": "meiyamovie_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "HBO Signature", "fun": "smt", "pid": "Hbosignature"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "HBO Hits", "fun": "smt", "pid": "Hbohitshd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "星卫电影", "fun": "smt", "pid": "xingwei_movie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "SCM", "fun": "smt", "pid": "Weishimovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Dreamworks", "fun": "smt", "pid": "Dreamworks"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Thrill", "fun": "smt", "pid": "Thrill"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Hits Movie", "fun": "smt", "pid": "Hitsmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "One", "fun": "smt", "pid": "One"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "tvN Movie", "fun": "smt", "pid": "Tvnmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Celestial Classic", "fun": "smt", "pid": "Celestial2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Celestial Movies HD", "fun": "smt", "pid": "Celestialindo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Axn HD", "fun": "smt", "pid": "Axn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Paramount Network", "fun": "smt", "pid": "Paramountnetwork"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Astrol Kplus", "fun": "smt", "pid": "Kplus"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Rock Actions", "fun": "smt", "pid": "Rockaction"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "电影频道", "name": "Rock Entertainment", "fun": "smt", "pid": "Rockentertain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Natgeo_HD", "fun": "smt", "pid": "natgeohd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "NatGeo_Wild HD", "fun": "smt", "pid": "natgeowild_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Animal_Planet", "fun": "smt", "pid": "animalplanet_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Discovery Asia", "fun": "smt", "pid": "discoverytwn_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "CI", "fun": "smt", "pid": "ci_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Asia Travel", "fun": "smt", "pid": "asiatravel_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Discovery HD", "fun": "smt", "pid": "discoveryhd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "亚洲美食", "fun": "smt", "pid": "afc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "美食星球", "fun": "smt", "pid": "foodplanet_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "亚洲旅游 TLC Asia", "fun": "smt", "pid": "tlc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "NatGeo HD", "fun": "smt", "pid": "Natgeo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Fashion TV", "fun": "smt", "pid": "fashiontv_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "History", "fun": "smt", "pid": "History"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "BBC Earth HD", "fun": "smt", "pid": "bbcearth_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "BBC Earth Lifestyle", "fun": "smt", "pid": "bbclifestyle_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "MTV Live", "fun": "smt", "pid": "mtvhd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "NatGeo Wild HD", "fun": "smt", "pid": "Natgeowild"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Animal Planet (Eng)", "fun": "smt", "pid": "AnimalPlanet"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "TLC", "fun": "smt", "pid": "Tlc"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "Foodnetwork Hd", "fun": "smt", "pid": "Foodnetwork"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "HGTV", "fun": "smt", "pid": "HGTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "纪录频道", "name": "AFC 亚洲旅游台", "fun": "smt", "pid": "asiatravel_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "Skynews", "fun": "smt", "pid": "skynews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "ABC News", "fun": "smt", "pid": "abcnews_glo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "东森财经新闻 ETTV Business", "fun": "smt", "pid": "ettvcaijing_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CBS HD", "fun": "smt", "pid": "cbshd_glo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CBSN HD", "fun": "smt", "pid": "cbsn_glo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "France 24", "fun": "smt", "pid": "france24_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "DW (Deutsch)", "fun": "smt", "pid": "dw_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "NHK World", "fun": "smt", "pid": "nhkworld_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "Fox News", "fun": "smt", "pid": "foxnews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CGTN", "fun": "smt", "pid": "CGTN"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CNN International", "fun": "smt", "pid": "Cnn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CNN backup", "fun": "smt", "pid": "cnn_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CNBC", "fun": "smt", "pid": "cnbc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "CNA", "fun": "smt", "pid": "cna"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "BBC World News", "fun": "smt", "pid": "bbcnews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "BBC World News", "fun": "smt", "pid": "Bbcnews"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "Bloomberg News", "fun": "smt", "pid": "bloomberg_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新闻频道", "name": "Al-Jazeera", "fun": "smt", "pid": "aljazeera_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Baby TV Eng", "fun": "smt", "pid": "Babytv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "CBeebies", "fun": "smt", "pid": "Cbeebies"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Kids TV", "fun": "smt", "pid": "KidsTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Momo TV", "fun": "smt", "pid": "momo1_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Animax", "fun": "smt", "pid": "Animax"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Baby TV", "fun": "smt", "pid": "babytv_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "MiaoMi", "fun": "smt", "pid": "MiaoMi"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "靖天卡通台", "fun": "smt", "pid": "jingtiancartoon_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "东森幼幼 Yoyo TV", "fun": "smt", "pid": "yoyo_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Cartoon Network", "fun": "smt", "pid": "Cn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Nickelodeon", "fun": "smt", "pid": "Nickelodeon"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "儿童频道", "name": "Nick Jr", "fun": "smt", "pid": "Nickjr"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "Channel 5", "fun": "smt", "pid": "Channel5HD"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "Channel 8", "fun": "smt", "pid": "Channel8HD"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "Suria", "fun": "smt", "pid": "Suria"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "Channel U", "fun": "smt", "pid": "ChannelU"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "Vasantham", "fun": "smt", "pid": "Vasantham"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "CNA", "fun": "smt", "pid": "cna"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "CNA backup", "fun": "smt", "pid": "cna_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "MeWatch Ch 5", "fun": "smt", "pid": "Mewatch_ch5"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "MeWatch Ch 8", "fun": "smt", "pid": "Mewatch_ch8"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "MeWatch Ch U", "fun": "smt", "pid": "Mewatch_chU"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "MeWatch Suria", "fun": "smt", "pid": "Mewatch_Suria"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "MeWatch Vasantham", "fun": "smt", "pid": "Mewatch_Vasantham"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "新加坡", "name": "MeWatch CNA", "fun": "smt", "pid": "Mewatch_cna"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV1", "fun": "smt", "pid": "TV1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV1 backup", "fun": "smt", "pid": "TV1_backup"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV2", "fun": "smt", "pid": "TV2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV3", "fun": "smt", "pid": "TV3"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV3 SD", "fun": "smt", "pid": "TV3_mega"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "NTV7", "fun": "smt", "pid": "NTV7"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV8", "fun": "smt", "pid": "TV8"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TV9", "fun": "smt", "pid": "TV9"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Ria", "fun": "smt", "pid": "Ria-0"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Ria-3", "fun": "smt", "pid": "Ria_backup"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Al-Hijrah", "fun": "smt", "pid": "Alhijrah"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Al-Hijrah backup", "fun": "smt", "pid": "Alhijrah_backup"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Awani", "fun": "smt", "pid": "Awani"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Bernama", "fun": "smt", "pid": "Bernama"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Prima", "fun": "smt", "pid": "Prima-0"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Prima backup", "fun": "smt", "pid": "AAprima1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Prima backup 2", "fun": "smt", "pid": "AAprima"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Ceria", "fun": "smt", "pid": "Ceria"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Astro MTV", "fun": "smt", "pid": "AstroMTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Mecca Live HD", "fun": "smt", "pid": "quran_mido"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Madinah HD", "fun": "smt", "pid": "sunnah_mido"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Oasis", "fun": "smt", "pid": "Oasis"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "HBO HD", "fun": "smt", "pid": "Hbo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "HBO Signature", "fun": "smt", "pid": "Hbosignature"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "HBO Hits", "fun": "smt", "pid": "Hbohitshd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "NatGeo Wild HD", "fun": "smt", "pid": "Natgeowild"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Cartoon Network", "fun": "smt", "pid": "Cn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Nickelodeon", "fun": "smt", "pid": "Nickelodeon"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Nick Jr", "fun": "smt", "pid": "Nickjr"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Dreamworks", "fun": "smt", "pid": "Dreamworks"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Siar", "fun": "smt", "pid": "Siar"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Citra", "fun": "smt", "pid": "AAcitra"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Citra backup", "fun": "smt", "pid": "AAcitra1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Sensasi", "fun": "smt", "pid": "Sensasi"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Aura", "fun": "smt", "pid": "Aura"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Rania", "fun": "smt", "pid": "Rania"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "KBS World", "fun": "smt", "pid": "KBS"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Boo", "fun": "smt", "pid": "Boo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Awesome TV", "fun": "smt", "pid": "Dsangat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Astro Sonypix", "fun": "smt", "pid": "Asonypix"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Sony HD", "fun": "smt", "pid": "SetOne"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TvN", "fun": "smt", "pid": "TVN"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "AEC", "fun": "smt", "pid": "AEC"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "华丽台 HD （Wah Lai Toi）", "fun": "smt", "pid": "Wlt"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "欢喜台 HD （Hua Hee Tai）", "fun": "smt", "pid": "Huahee"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Astro QJ", "fun": "smt", "pid": "Quanjia"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TVB Jade", "fun": "smt", "pid": "Tvbjade"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TVB Asia", "fun": "smt", "pid": "Tvbasia"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TVB Entertainment", "fun": "smt", "pid": "Tvbentertainment"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TVB Classic", "fun": "smt", "pid": "Tvbclassic"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "AOD", "fun": "smt", "pid": "Aodhd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "One", "fun": "smt", "pid": "One"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TVB 星河台 Xing He", "fun": "smt", "pid": "Xinhe"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "爱奇艺 iQiyi", "fun": "smt", "pid": "Qiyi"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Animal Planet (Eng)", "fun": "smt", "pid": "AnimalPlanet"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "tvN Movie", "fun": "smt", "pid": "Tvnmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "CNN backup", "fun": "smt", "pid": "cnn_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Celestial Classic", "fun": "smt", "pid": "Celestial2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "CNBC", "fun": "smt", "pid": "cnbc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "TLC", "fun": "smt", "pid": "Tlc"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "CNA", "fun": "smt", "pid": "cna"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "BBC World News", "fun": "smt", "pid": "bbcnews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Foodnetwork Hd", "fun": "smt", "pid": "Foodnetwork"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "HGTV", "fun": "smt", "pid": "HGTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Goshop", "fun": "smt", "pid": "Goshop"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Celestial Movies HD", "fun": "smt", "pid": "Celestial"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Axn HD", "fun": "smt", "pid": "Axn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Paramount Network", "fun": "smt", "pid": "Paramountnetwork"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Astrol Kplus", "fun": "smt", "pid": "Kplus"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "AFC 亚洲旅游台", "fun": "smt", "pid": "asiatravel_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Rock Actions", "fun": "smt", "pid": "Rockaction"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Bloomberg News", "fun": "smt", "pid": "bloomberg_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Al-Jazeera", "fun": "smt", "pid": "aljazeera_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Rock Entertainment", "fun": "smt", "pid": "Rockentertain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "RTM Sports HD", "fun": "smt", "pid": "Rtmsport"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Arena", "fun": "smt", "pid": "Arena"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Arena 2", "fun": "smt", "pid": "Arena2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "BolaArena 1", "fun": "smt", "pid": "Bolaarena1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "BolaArena 2", "fun": "smt", "pid": "Bolaarena2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Astro LOL", "fun": "smt", "pid": "Astro_lol"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "Astro Rusi", "fun": "smt", "pid": "Rusi"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "WION", "fun": "smt", "pid": "Wion"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "马来西亚", "name": "RTM Asean", "fun": "smt", "pid": "Rtmasean"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "TVRI National", "fun": "smt", "pid": "TVRI"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "RCTI", "fun": "smt", "pid": "Rcti"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Kompass TV", "fun": "smt", "pid": "Kompass"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Berita Satu", "fun": "smt", "pid": "BeritaSatu_eko"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Indosiar HD", "fun": "smt", "pid": "Indosiar"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "AnTV", "fun": "smt", "pid": "Antv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "MNC TV", "fun": "smt", "pid": "Mnctv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Trans 7", "fun": "smt", "pid": "Trans7_eko"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Transtv", "fun": "smt", "pid": "Transtv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "JTV", "fun": "smt", "pid": "JTV_eko"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Metro TV", "fun": "smt", "pid": "metrotv_eko"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Cinemax", "fun": "smt", "pid": "Cinemax"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "SCTV", "fun": "smt", "pid": "SCTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Tvone", "fun": "smt", "pid": "Tvone"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "TVMU", "fun": "smt", "pid": "TVMU_eko"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "GTV", "fun": "smt", "pid": "Gtv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "RTV", "fun": "smt", "pid": "Rtv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Jak TV", "fun": "smt", "pid": "JakTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "iNews TV", "fun": "smt", "pid": "Inewstv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Daai TV", "fun": "smt", "pid": "DaaiTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Net TV", "fun": "smt", "pid": "NetTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Animax", "fun": "smt", "pid": "Animax"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "EWTN", "fun": "smt", "pid": "Ewtn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "AlQuran AlKareem", "fun": "smt", "pid": "AlQuran"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Tawaf TV", "fun": "smt", "pid": "TawafTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Vision Prime", "fun": "smt", "pid": "VisionPrime"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Muslim TV", "fun": "smt", "pid": "MuslimTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Music TV", "fun": "smt", "pid": "MusicTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Lifestyle&Fashion", "fun": "smt", "pid": "Lifestyle"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Entertain", "fun": "smt", "pid": "Entertain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Hits", "fun": "smt", "pid": "Hits"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Warner TV", "fun": "smt", "pid": "WarnerTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "SCM", "fun": "smt", "pid": "Weishimovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Thrill", "fun": "smt", "pid": "Thrill"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Fight Sports", "fun": "smt", "pid": "Fs"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Hits Movie", "fun": "smt", "pid": "Hitsmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "One", "fun": "smt", "pid": "One"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "tvN Movie", "fun": "smt", "pid": "Tvnmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Celestial Movies HD", "fun": "smt", "pid": "Celestialindo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Rock Actions", "fun": "smt", "pid": "Rockaction"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度尼西亚", "name": "Rock Entertainment", "fun": "smt", "pid": "Rockentertain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Sun TV HD", "fun": "smt", "pid": "Suntv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Star Vijay", "fun": "smt", "pid": "Starvijay"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Colors Tamil", "fun": "smt", "pid": "Colorstam"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Sun Music", "fun": "smt", "pid": "Sunmusic"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Astro Sunlife", "fun": "smt", "pid": "Sunlife"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Astro Vaanavil", "fun": "smt", "pid": "Vaanavil"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Zee Tamil", "fun": "smt", "pid": "Zeetamil"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Zee Business", "fun": "smt", "pid": "Zeebusiness"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "News 18 Tamil", "fun": "smt", "pid": "news18tamil_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Adithya", "fun": "smt", "pid": "Adithya"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Makkal TV", "fun": "smt", "pid": "Makkaltv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Zee Action", "fun": "smt", "pid": "Zeeaction"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Astro KTV", "fun": "smt", "pid": "Astroktv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Zee TV HD", "fun": "smt", "pid": "Zeetvhd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Zee Cinema HD", "fun": "smt", "pid": "Zeecinemahd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Color HD", "fun": "smt", "pid": "Colorhd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Starplus HD", "fun": "smt", "pid": "Starplushd"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Picture HD", "fun": "smt", "pid": "Npicture"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Zee News", "fun": "smt", "pid": "Zeenews"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Asianet", "fun": "smt", "pid": "asianet_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Asianet News", "fun": "smt", "pid": "asianetnews_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Discovery World Tamil", "fun": "smt", "pid": "discoveryworldtam_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "History Tamil", "fun": "smt", "pid": "historytam_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "NatGeo Tamil", "fun": "smt", "pid": "natgeotamil_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Natgeo Wild Tamil", "fun": "smt", "pid": "natgeowildtamil_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Astro Sonypix", "fun": "smt", "pid": "Asonypix"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Discovery Kids Tamil", "fun": "smt", "pid": "discoverykidtamil_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Discovery Tamil", "fun": "smt", "pid": "discoverytamil_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Sony Yay Tamil", "fun": "smt", "pid": "sonyyaytam_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Sun TV India", "fun": "smt", "pid": "suntv_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Starmaa HD", "fun": "smt", "pid": "starmaa_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Starmaa Movies HD", "fun": "smt", "pid": "starmaamovies_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Bollyone", "fun": "smt", "pid": "Bollyone"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Astro Sunmusic", "fun": "smt", "pid": "Sunmusic"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Vijay Super", "fun": "smt", "pid": "vijaysuper_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "印度", "name": "Vellithirai", "fun": "smt", "pid": "Vellithirai"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Channel 3 Thailand", "fun": "smt", "pid": "ch3_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Channel 5 Thailand", "fun": "smt", "pid": "ch5_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Channel 7 Thailand", "fun": "smt", "pid": "ch7_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "MCOT HD Thailand-1", "fun": "smt", "pid": "mcot_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "PPTV Thailand1", "fun": "smt", "pid": "pptv_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Thai Thai", "fun": "smt", "pid": "thaithai_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Amarin", "fun": "smt", "pid": "amarin_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Ch 8", "fun": "smt", "pid": "ch8_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "GmmOne", "fun": "smt", "pid": "gmmone_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Mono", "fun": "smt", "pid": "mono_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Thairath", "fun": "smt", "pid": "thairath_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "tpbs", "fun": "smt", "pid": "tpbs_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Workpoint", "fun": "smt", "pid": "workpoint_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Gmm Channel", "fun": "smt", "pid": "gmmchannel_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Nation", "fun": "smt", "pid": "nation_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Tnn24", "fun": "smt", "pid": "tnn24_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "Nbt", "fun": "smt", "pid": "nbt_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "New", "fun": "smt", "pid": "new_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "泰国", "name": "TPTV", "fun": "smt", "pid": "tptv_pat"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "BBC 1", "fun": "smt", "pid": "bbc1_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "BBC 2", "fun": "smt", "pid": "bbc2_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "CBBC", "fun": "smt", "pid": "cbbc_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "More4", "fun": "smt", "pid": "more4_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Freesports", "fun": "smt", "pid": "freesports_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Skynews", "fun": "smt", "pid": "skynews_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Pick TV", "fun": "smt", "pid": "picktv_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "itv 1", "fun": "smt", "pid": "itv1_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "itv 2", "fun": "smt", "pid": "itv2_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Euronews", "fun": "smt", "pid": "euronews_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Channel 4", "fun": "smt", "pid": "channel4_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "NatGeo HD", "fun": "smt", "pid": "Natgeo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "CBeebies", "fun": "smt", "pid": "Cbeebies"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "History", "fun": "smt", "pid": "History"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Kids TV", "fun": "smt", "pid": "KidsTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "France 24", "fun": "smt", "pid": "france24_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "DW (Deutsch)", "fun": "smt", "pid": "dw_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "BBC Earth HD", "fun": "smt", "pid": "bbcearth_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "BBC Earth Lifestyle", "fun": "smt", "pid": "bbclifestyle_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "MTV Live", "fun": "smt", "pid": "mtvhd_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Star Movies HD", "fun": "smt", "pid": "starmovies_raj"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "NHK World", "fun": "smt", "pid": "nhkworld_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Warner TV", "fun": "smt", "pid": "WarnerTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "HBO HD", "fun": "smt", "pid": "Hbo"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "NatGeo Wild HD", "fun": "smt", "pid": "Natgeowild"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Nickelodeon", "fun": "smt", "pid": "Nickelodeon"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Nick Jr", "fun": "smt", "pid": "Nickjr"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Thrill", "fun": "smt", "pid": "Thrill"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "CGTN", "fun": "smt", "pid": "CGTN"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Hits Movie", "fun": "smt", "pid": "Hitsmovie"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Animal Planet (Eng)", "fun": "smt", "pid": "AnimalPlanet"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "CNBC", "fun": "smt", "pid": "cnbc_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "TLC", "fun": "smt", "pid": "Tlc"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "BBC World News", "fun": "smt", "pid": "bbcworldnews_antik"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "HGTV", "fun": "smt", "pid": "HGTV"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Axn HD", "fun": "smt", "pid": "Axn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Skysports F1", "fun": "smt", "pid": "tiankongf1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Skysports Cricket", "fun": "smt", "pid": "tiankongcricket"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Bloomberg News", "fun": "smt", "pid": "bloomberg_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Skysports EPL", "fun": "smt", "pid": "tiankongepl"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Skysports Main Event", "fun": "smt", "pid": "tiankongmain"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Skysports News", "fun": "smt", "pid": "tiankongnews"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "英国", "name": "Al-Jazeera", "fun": "smt", "pid": "aljazeera_twn"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "ANTV", "fun": "smt", "pid": "viet_antv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "VTV 1", "fun": "smt", "pid": "viet_vtv1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "VTV 7", "fun": "smt", "pid": "viet_vtv7"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "HTV 7", "fun": "smt", "pid": "viet_htv7"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "HTV 9", "fun": "smt", "pid": "viet_htv9"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "BPTV 2", "fun": "smt", "pid": "viet_bptv2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "BRT HD", "fun": "smt", "pid": "viet_brt"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "Ca Mau TV", "fun": "smt", "pid": "viet_camautv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "Danang TV1 HD", "fun": "smt", "pid": "viet_danangtv1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "Danang TV2 HD", "fun": "smt", "pid": "viet_danangtv2"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "HBTV HD", "fun": "smt", "pid": "viet_hbtv"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "越南", "name": "PTTH 1", "fun": "smt", "pid": "viet_ptth1"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "Arirang HD", "fun": "smt", "pid": "arirang_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "Yonhap News", "fun": "smt", "pid": "yonhapnews_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "CBS", "fun": "smt", "pid": "cbs_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "EBS 1", "fun": "smt", "pid": "ebs1_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "EBS2", "fun": "smt", "pid": "ebs2_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "EBS Plus2", "fun": "smt", "pid": "ebsplus2_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "SBS Plus", "fun": "smt", "pid": "sbsplus_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "YTN", "fun": "smt", "pid": "ytn_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "KBS World 24", "fun": "smt", "pid": "kbsworld24_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "YTN Science", "fun": "smt", "pid": "ytnscience_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "YTN Korean", "fun": "smt", "pid": "ytnkorean_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "YTN DMB", "fun": "smt", "pid": "ytndmb_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "Apps TV", "fun": "smt", "pid": "appongoogle_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "All the Kpop", "fun": "smt", "pid": "allthekpop_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "J the Kpop", "fun": "smt", "pid": "jthekpop_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "EBS Kids", "fun": "smt", "pid": "ebskids_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "韩国", "name": "CGNTV", "fun": "smt", "pid": "cgntv_korea"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "NHK-総合-2", "fun": "smt", "pid": "nhkg_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "NHK-E", "fun": "smt", "pid": "nhke_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "テレビ朝日 Asahi TV", "fun": "smt", "pid": "asahitv_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "JET 綜合", "fun": "smt", "pid": "jettv_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "テレビ東京 Tokyo TV", "fun": "smt", "pid": "tokyotv_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "TOKYOMX", "fun": "smt", "pid": "tokyomx_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "NHKBS1", "fun": "smt", "pid": "nhkbs1_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "NHKBSプレミア Premium", "fun": "smt", "pid": "nhkpremium_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "BSジャパン 181", "fun": "smt", "pid": "bs181_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "BSフジ BS Fuji", "fun": "smt", "pid": "bsfuji_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "CNA Japan", "fun": "smt", "pid": "cna_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "BS-TBS", "fun": "smt", "pid": "bstbs_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "NHK Oaska", "fun": "smt", "pid": "nhkosaka_japan"}, {"tvg-id": "", "tvg-name": "", "tvg-logo": "", "group-title": "日本", "name": "NHK World", "fun": "smt", "pid": "nhkworld_japan"}]
"
        self.headers = {'User-Agent': 'Mozilla/5.0','CLIENT-IP': '127.0.0.1','X-FORWARDED-FOR': '127.0.0.1'}
        pass

    def getDependence(self):
        return []

    def isVideoFormat(self, url):
        pass

    def manualVideoCheck(self):
        pass


    def liveContent(self, url):
        data_list = json.loads(self.b64decode(self.d))
        tv_list = ['#EXTM3U']
        for i in data_list:
            tvg_id = i['tvg-id']
            tvg_name = i['tvg-name']
            tvg_logo = i['tvg-logo']
            group_name = i['group-title']
            name = i['name']
            fun = i['fun']
            pid = i['pid']
            tv_list.append(f'#EXTINF:-1 tvg-id="{tvg_id}" tvg-name="{tvg_name}" tvg-logo="{tvg_logo}" group-title="{group_name}",{name}')
            tv_list.append(f'{self.getProxyUrl()}&fun={fun}&pid={pid}')
        return '\n'.join(tv_list)

    def homeContent(self, filter):
        return {}

    def homeVideoContent(self):
        return {}

    def categoryContent(self, cid, page, filter, ext):
        return {}

    def detailContent(self, did):
        return {}

    def searchContent(self, key, quick, page='1'):
        return {}

    def searchContentPage(self, keywords, quick, page):
        return {}

    def playerContent(self, flag, pid, vipFlags):
        return {}

    def localProxy(self, params):

        _fun = params.get('fun', None)
        _type = params.get('type', None)

        if _fun is not None:
            fun = getattr(self, f'fun_{_fun}')
            return fun(params)

        if _type is not None:
            if params['type'] == "m3u8":
                return self.get_m3u8_text(params)

            if params['type'] == "ts":
                return self.get_ts(params)

        return [302, "text/plain", None, {'Location': 'https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4'}]
    def fun_smt(self, params):
        pid = params['pid']
        url = f'http://50.7.234.10:8278/{pid}/playlist.m3u8'
        t = str(int(time.time() / 150))
        p = {
            'tid': 'mc42afe745533',
            'ct': t,
            'tsum': hashlib.md5(f'tvata nginx auth module/{pid}/playlist.m3u8mc42afe745533{t}'.encode('utf-8')).hexdigest()
        }
        play_url = self.b64encode(url + '?' + urlencode(p))
        url = f'{self.getProxyUrl()}&type=m3u8&url={play_url}'
        return [302, "text/plain", None, {'Location': url}]


    def get_m3u8_text(self,params):
        url = self.b64decode(params['url'])
        headers = self.headers
        home_url = url.replace(url.split('/')[-1], '')

        def callback_function(match):
            uri = home_url + match.group(1)
            a = self.b64encode(uri)
            # h = params['headers']
            return f"{self.getProxyUrl()}&type=ts&url={a}"
        response = requests.get(url, headers=headers)
        m3u8_text = re.sub(r'(.*\.ts.*)', callback_function, response.text)
        return [200, "application/vnd.apple.mpegurl", m3u8_text]

    def get_ts(self, params):
        url = self.b64decode(params['url'])
        headers = self.headers
        response = requests.get(url, headers=headers, stream=True)
        return [206, "application/octet-stream", response.content]

    def destroy(self):
        return '正在Destroy'

    def b64encode(self, data):
        return base64.b64encode(data.encode('utf-8')).decode('utf-8')

    def b64decode(self, data):
        return base64.b64decode(data.encode('utf-8')).decode('utf-8')

if __name__ == '__main__':
    pass